package com.telecom.dao.impl;

import com.telecom.dao.StudentDao;
import com.telecom.entity.Student;
import com.telecom.util.SessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class StudentDaoImpl implements StudentDao {
    @Override
    public int insert(Student student) {
        SqlSession session= SessionUtil.getSession();
        int result=session.insert("insert",student);
        session.commit();
        session.close();
        return result;
    }

    @Override
    public int update(Student student) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

    @Override
    public List<Student> selectList() {
        return null;
    }
}
